'use strict';

/**
 * @ngdoc function
 * @name jgappApp.controller:TaskEdittaskCtrl
 * @description
 * # TaskEdittaskCtrl
 * Controller of the jgappApp
 */
angular.module('jgappApp')
    .controller('TaskEdittaskCtrl', function(localStorageService, Util) {
        var vm = this;
        vm.done = function() {
            localStorageService.set("taskdetail", vm.data);
            Util.goBack()
        }
        var init = function() {
            vm.data = localStorageService.get("taskdetail");
            console.log(vm.data);
        }
        init();
    });